﻿<%@ Page Title="" Language="C#" MasterPageFile="~/travel-flights/Travel_Flights.master" AutoEventWireup="true" CodeFile="results.aspx.cs" Inherits="travel_flights_results_new" Async="true" MaintainScrollPositionOnPostback="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<%@ Register Src="../controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style>
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=90);
            opacity: 0.8;
        }
        /*#sidebarTravel
        {
            position: fixed;
            margin-top: 0px;
            margin-left: 650px;
        }*/</style>

    <script src="../includes/ValidationError-NEW.js" type="text/javascript"></script>

    <script src="../includes/ValidationEffect-NEW.js" type="text/javascript"></script>

    <script src="../includes/LoadingProgress.js" type="text/javascript"></script>

    <script src="../controls/CE_Date.js" type="text/javascript"></script>

    
    <asp:ScriptManager ID="ScriptManager" runat="server" AsyncPostBackTimeout="36000">
    </asp:ScriptManager>
    <div class="seperator">
    </div>

    <script type="text/javascript">
        IncreaseProgress(10);
    </script>
    
    <div style="padding:10px 0;" id="divTI" runat="server">
    <asp:GridView RowStyle-Height="65px" ID="gvTAResultsInsurer" runat="server" Visible="false"
                                        AutoGenerateColumns="False" CellPadding="0" GridLines="None" AllowSorting="True"
                                        DataKeyNames="TAInsID" OnRowDataBound="gvTAResultsInsurer_RowDatabound" ShowHeader="false"
                                        CssClass="seperator_flights" OnRowCommand="gvTAResultsInsurer_RowCommand">
                                        <Columns>
                                            <asp:BoundField DataField="TAInsID" InsertVisible="False" ReadOnly="True" Visible="False">
                                                <ItemStyle Width="0px" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Insurer/Plan Name">
                                                <ItemTemplate>
                                                    <table width="70" cellpadding="0" cellspacing="0" border="0">
                                                        <tr style="padding: 0; margin: 0">
                                                            <td width="75" height="42" valign="top" align="center">
                                                                <asp:Image runat="server" ID="imgCompanyLogo" 
                                                                    Width="55" />
                                                            </td>
                                                            <td width="55" valign="top" align="center" style="padding-top: 7px;display:none;">
                                                                <%# Eval("PlanName").ToString()%>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                                <ItemStyle />
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="AnnualPremium" HtmlEncode="false" SortExpression="AnnualPremium"
                                                HeaderText="Premium<br /><span class='grid_font'>(w/ GST)</span>">
                                                <ItemStyle Width="280" HorizontalAlign="center" VerticalAlign="top" CssClass=" pad_5l pad_17t"
                                                    Font-Bold Font-Size="15px" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="imgbtnCompare" ImageUrl="../images/spacer.gif" Width="51" Height="45"
                                                        AlternateText="Buy Direct" runat="server" CommandName="Compare" />
                                                </ItemTemplate>
                                                <ItemStyle Width="70px" HorizontalAlign="Right" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle />
                                        <PagerStyle />
                                        <SelectedRowStyle />
                                        <EditRowStyle />
                                        <%--<RowStyle CssClass="packfour tr" />--%>
                                    </asp:GridView>
                        
                        <div style="float:left;color: #07b;font-size: 18px;padding: 6px;">Compare<br>Travel Insurance</div>
                        <div style="float:left;">         
        <asp:DataList ID="dlTAResultsInsurer" runat="server" RepeatDirection="Horizontal"
            OnItemDataBound="dlTAResultsInsurer_ItemDataBound" OnItemCommand="dlTAResultsInsurer_ItemCommand">
            <ItemTemplate>
                <div style="height: 65px; background: transparent url(../images/flights/bg_restuls_travel-row.png) no-repeat 0% 100%;
                    width: 197px;margin-left: 10px;">
                    <div style="float: left; width: 70px; padding: 10px 5px;">
                        <asp:Image runat="server" ID="imgCompanyLogo" Width="55" /></div>
                    <div style="float: left; font-size: 15px; font-weight: bold; width: 57px; padding-left: 5px;
                        padding-top: 17px;">
                        <%# "$" + double.Parse(Eval("AnnualPremium").ToString()).ToString("N2")%></div>
                    <div style="float: left; width: 55px; height: 50px;">
                        <asp:ImageButton ID="imgbtnCompare" ImageUrl="../images/spacer.gif" Width="51" Height="45"
                            AlternateText="Buy Direct" runat="server" CommandName="Compare" /></div>
                </div>
            </ItemTemplate>
        </asp:DataList>
        </div> 
        <div style="clear:both;"></div>  
    </div>
    
<asp:Timer ID="Timer1" runat="server" Interval="2000" ontick="Timer1_Tick">
        </asp:Timer>

    <div class="results_flights">
        <div class="body">
            <div class="top">
                <div class="tabs">
                    <ul>
                        <li><a href="#" class="home">Flights</a></li>
                        <li class="info"><a href="#" class="info">
                            <asp:Label ID="lblLocation" runat="server" Font-Bold="true"></asp:Label></a><br />
                            <a href="#" class="info2">Traveling Date: <strong>
                                <asp:Label ID="lblDates" runat="server" Font-Bold="true"></asp:Label></strong> &nbsp;&nbsp;
                                From: <strong>
                                    <asp:Label ID="lblFrom" runat="server"></asp:Label></strong> &nbsp;&nbsp; To:
                                <strong>
                                    <asp:Label ID="lblTo" runat="server"></asp:Label></strong></a><asp:LinkButton ID="lnkbtnChange"
                                        runat="server" CssClass="info3" Text="[Change Your Search]" OnClick="lnkbtnChange_Click"></asp:LinkButton>
                        </li>
                        <!-- <li><a href="#" class="away">Hotels</a></li> -->
                    </ul>
                </div>
            </div>
            <div class="pad_23">
                <div id="divfr" class="results_details left">
                    <div class="top">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
        </Triggers>
        <ContentTemplate>
                        <div style="background-color: #0097C8;color: white;">
            <div style="float:left;padding: 1px 2px;">
            <asp:Image ID="imgLoading" runat="server" ImageUrl="../images/loader/loaderbar.gif" />
            </div>
            <div class="pad_10" style="float:left;">
                            <asp:Label runat="server" ID="lblCount">Searching airlines</asp:Label>
                            <asp:Label runat="server" ID="lblCountAll" Visible="false"></asp:Label>
                                    
            <asp:Label ID="lblFlightResult" runat="server" Text="Label" Visible="false"></asp:Label>
        
                            <div class="right">
                                <asp:ImageButton runat="server" ID="imgbtnViewSummary" ImageUrl="~/images/flights/button_view-summary.png"
                                    OnClick="imgbtnViewSummary_Click" Visible="false" /><br />
                            </div>
                            </div>
                            <div style="clear:both;"></div>
                        </div>
                        </ContentTemplate></asp:UpdatePanel>
                    </div>
                    <div class="body">
                        <!-- Paged Results | Start -->
                        
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
        <asp:AsyncPostBackTrigger ControlID="cblCarriers" EventName="SelectedIndexChanged" />
        </Triggers>
        <ContentTemplate>
                        <div id="divPaging" runat="server" visible="false">
                            <div class="seperator">
                            </div>
                            <div class="center" style="text-align: center; width: 100%;">
                                <asp:Repeater ID="rptPages" runat="server" Visible="false" OnItemDataBound="rptPages_ItemDataBound">
                                    <HeaderTemplate>
                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                            <tr class="text">
                                                <td>
                                                    <b>Page:</b>
                                        &nbsp;
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btnPage" CommandName="Page" CommandArgument="<%#
                         Container.DataItem %>" runat="server"><%# Container.DataItem %>
                                        </asp:LinkButton>&nbsp;
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </td> </tr> </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </div>
                            <div class="seperator">
                            </div>
                        </div>
                        <!-- Paged Results | End   -->
                        
                        <div class="pad_10">

                            <script type="text/javascript">
                                IncreaseProgress(20);
                            </script>

                            <asp:GridView ID="gvFlightsResults" runat="server" CellPadding="0" CellSpacing="0"
                                ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="Airlines" OnRowDataBound="gvFlightsResults_RowDatabound" OnSelectedIndexChanged="gvFlightsResults_SelectedIndexChanged"
                                ShowHeader="false" CssClass="bg_seperator" EmptyDataText="No results found. Please try again.">
                                <Columns>
                                    <asp:TemplateField HeaderText="Airline">
                                        <ItemTemplate>
                                            <div>
                                                <div class="left w115px">
                                                    <asp:Image runat="server" ID="imgAirlineLogo" /></div>
                                                <div class="left w115px">
                                                    <%#DataBinder.Eval(Container.DataItem, "Airlines")%></div>
                                            </div>
                                            <br clear="all" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="">
                                        <ItemTemplate>
                                            <div class="w183px left gray">
                                                See all
                                                <asp:Label runat="server" ID="lblResultsCount"></asp:Label>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Best Price<br/>Per Pax" HeaderStyle-Height="45px">
                                        <ItemTemplate>
                                            <div class="w183px left txtright pad_10r">
                                                <asp:Label runat="server" ID="lblCurrency"></asp:Label>&nbsp;<asp:Label runat="server"
                                                    ID="lblPrice" CssClass="price"></asp:Label>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="../images/flights/button_go.png"
                                        ControlStyle-CssClass="pad_10r" />
                                </Columns>
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#eeeeee" Font-Bold="True" ForeColor="#333333" Height="60px" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle Height="60px" BackColor="White" BorderColor="#EFF3FB" />
                                <RowStyle CssClass="bg_seperator" />
                            </asp:GridView>

                            <script type="text/javascript">
                                IncreaseProgress(30);
                            </script>

                            <asp:Repeater ID="rptDetails" runat="server" Visible="False" 
                                OnItemDataBound="rptDetails_ItemDataBound">
                                <HeaderTemplate>
                                    <!-- TABLE START -->
                                    <div id="rptDetailsHasRecords" runat="server">
                                    <h1 class="sum">
                                        Available Flights</h1>
                                        </div>
                                    <div id="rptDetailsNoRecords" runat="server" visible="false">
                                    No results found. Please try again.
                                        </div>
                                    <br />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <div>
                                        <table width="630" cellpadding="2" cellspacing="1" border="0">
                                            <tr>
                                                <td colspan="4">
                                                    <div style="border: 1px solid #d3d3d3; padding: 7px; background: #fafafa;">
                                                        <table border="0" width="100%" style="border: 0;">
                                                            <tbody>
                                                                <tr>
                                                                    <td style="width: 300px;">
                                                                        <%-- <asp:Image runat="server" ID="imgAirlineLogo" BorderColor="#d3d3d3" BorderStyle="Solid"
                                                                            BorderWidth="1" />--%>
                                                                    </td>
                                                                    <td align="right">
                                                                        <b style="font-size: 19px; color: #49b222">
                                                                            <asp:Label ID="lblPrice" runat="server"></asp:Label></b>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <hr style="width: 100%; border: 1px solid #d3d3d3; height: 0;" size="1" />
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size: 13px;">
                                                            <tr>
                                                                <td>
                                                                    <b>Outbound Flight</b> - <span style="color: #318911;">
                                                                        <asp:Label ID="lblOutboundDepartureDate" runat="server"></asp:Label></span>
                                                                </td>
                                                                <td align="right">
                                                                    <img src="/images/flights/icon_duration.gif" alt="Duration" />
                                                                    Duration:
                                                                    <asp:Label ID="lblOutboundDuration" runat="server" Font-Bold="true"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <div class="seperator">
                                                        </div>
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size: 11px;
                                                            color: #808080;">
                                                            <tr>
                                                                <td class="fx-table1" width="80">
                                                                    <asp:Image runat="server" ID="imgOutboundAirlines" BorderColor="#d3d3d3" BorderStyle="Solid"
                                                                        BorderWidth="1" Width="80px" />
                                                                </td>
                                                                <td class="fx-table2" width="120" align="center">
                                                                    <b>
                                                                        <asp:Label ID="lblOutboundDepartureFlightNo" runat="server"></asp:Label></b>
                                                                </td>
                                                                <td class="fx-table3" width="218" align="left" valign="top">
                                                                    <b>
                                                                        <asp:Label ID="lblOutboundDepartureTime" runat="server"></asp:Label></b><br />
                                                                    Departs from
                                                                    <asp:Label ID="lblAirportFrom" runat="server"></asp:Label>
                                                                    -
                                                                    <asp:Label ID="lblLocationFrom" runat="server"></asp:Label>
                                                                </td>
                                                                <td class="fx-table4" width="218" align="right" valign="top">
                                                                    <b>
                                                                        <asp:Label ID="lblOutboundArrivalTime" runat="server"></asp:Label>
                                                                    </b>
                                                                    <br />
                                                                    Arrives at
                                                                    <asp:Label ID="lblAirportTo" runat="server"></asp:Label>
                                                                    -
                                                                    <asp:Label ID="lblLocationTo" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                            <tr id="trConnecting" runat="server" class="table_details">
                                                                <td>
                                                                    <div class="seperator_connecting">
                                                                    </div>
                                                                    <asp:PlaceHolder ID="phConnecting" runat="server" Visible="false"></asp:PlaceHolder>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <hr style="width: 100%; border: 1px solid #d3d3d3; height: 0;" size="1" />
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size: 13px;">
                                                            <tr id="trReturnHeader" runat="server">
                                                                <td>
                                                                    <b>Return Flight</b> - <span style="color: #318911;">
                                                                        <asp:Label ID="lblInboundDepartureDate" runat="server"></asp:Label></span>
                                                                </td>
                                                                <td align="right">
                                                                    <img src="/images/flights/icon_duration.gif" alt="Duration" />
                                                                    Duration:
                                                                    <asp:Label ID="lblInboundDuration" runat="server" Font-Bold="true"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <div class="seperator">
                                                        </div>
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size: 11px;
                                                            color: #808080;">
                                                            <tr id="trReturn" runat="server">
                                                                <td class="fx-table1" width="80">
                                                                    <asp:Image runat="server" ID="imgInboundAirlines" BorderColor="#d3d3d3" BorderStyle="Solid"
                                                                        BorderWidth="1" Width="80px" />
                                                                </td>
                                                                <td class="fx-table2" width="168" align="center">
                                                                    <b>
                                                                        <asp:Label ID="lblInboundFlightNumber" runat="server"></asp:Label></b>
                                                                </td>
                                                                <td class="fx-table3" width="" align="left" valign="top">
                                                                    <b>
                                                                        <asp:Label ID="lblInboundDepartureTime" runat="server"></asp:Label></b><br />
                                                                    Departs from
                                                                    <asp:Label ID="lblInboundAirportFrom" runat="server"></asp:Label>
                                                                    -
                                                                    <asp:Label ID="lblInboundLocationFrom" runat="server"></asp:Label>
                                                                </td>
                                                                <td class="fx-table4" width="" align="right" valign="top">
                                                                    <b>
                                                                        <asp:Label ID="lblInboundArrivalTime" runat="server"></asp:Label></b><br />
                                                                    Arrives at
                                                                    <asp:Label ID="lblInboundAirportTo" runat="server"></asp:Label>
                                                                    -
                                                                    <asp:Label ID="lblInboundLocationTo" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr id="trConnectingReturn" runat="server" class="table_details">
                                                                <td colspan="4">
                                                                    <div class="seperator_connecting">
                                                                    </div>
                                                                    <asp:PlaceHolder ID="phConnectingReturn" runat="server" Visible="false"></asp:PlaceHolder>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                </td>
                                                                <td align="right">
                                                                    <div class="seperator">
                                                                    </div>
                                                                    <asp:HyperLink ID="hlnkContinue" runat="server" Text="Book Now!" NavigateUrl="#"
                                                                        Target="_blank" ImageUrl="/images/flights/button_continue.png"></asp:HyperLink>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="4" >
                                                                    Price Offered By:
                                                                    <asp:Label ID="lblProvider" runat="server"></asp:Label>
                                                                     |
                                                                     Fare Type:
                                                                    <asp:Label ID="lblFareType" runat="server"></asp:Label>
                                                                </td>                                                             
                                                            </tr>
                                                            <tr id="trOtherProviders" runat="server" visible="false" class="table_details">
                                                                <td colspan="4">
                                                                    <a href="#" runat="server" id="lnkSeePrices">Show All Prices</a>
                                                                    <div id="divOthers" runat="server" style="display: none;">
                                                                        <br />
                                                                        <asp:HiddenField ID="hfLegsID" runat="server" />
                                                                        <asp:GridView runat="server" ID="gvProviders" CellPadding="1" CellSpacing="2" AutoGenerateColumns="false"
                                                                            BorderWidth="0px" BorderColor="White" OnRowDataBound="gvProviders_RowDataBound"
                                                                            Width="100%">
                                                                            <HeaderStyle BackColor="WhiteSmoke" Height="15px" />
                                                                            <RowStyle BackColor="White" Height="15px" />
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Offered by">
                                                                                    <ItemTemplate>
                                                                                        <div>
                                                                                            <div class="left w115px">
                                                                                                <asp:Image runat="server" ID="imgProviderLogo" Width="80px" /></div>
                                                                                        </div>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Fare Type">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="lblFareType" runat="server"></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Total Price">
                                                                                    <ItemTemplate>
                                                                                        S$
                                                                                        <asp:Label ID="lblPrice" runat="server"></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink ID="hlnkProvider" runat="server" Text="Continue" NavigateUrl="#" Target="_blank"></asp:HyperLink>
                                                                                        <img src="../images/flights/more.png" alt="continue" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                            </tr>
                                        </table>
                                        <br />
                                    </div>
                                    </td> </tr>
                                    <div style="text-indent: -1000em">
                                    </div>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </table>
                                    <!-- TABLE ENDING -->
                                    <%-- </div>--%>
                                </FooterTemplate>
                            </asp:Repeater>
                        </div>
                        <script type="text/javascript">
                            IncreaseProgress(40);
                        </script>

                        <!-- Paged Results | Start -->
                        <div id="divPaging2" runat="server" visible="false">
                            <div class="seperator">
                            </div>
                            <div class="center" style="text-align: center; width: 100%;">
                                <asp:Repeater ID="rptPagesBottom" runat="server" Visible="false" OnItemDataBound="rptPagesBottom_ItemDataBound">
                                    <HeaderTemplate>
                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                            <tr class="text">
                                                <td>
                                                    <b>Page:</b>
                                        &nbsp;
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btnPage" CommandName="Page" CommandArgument="<%#
                         Container.DataItem %>" runat="server"><%# Container.DataItem %>
                                        </asp:LinkButton>&nbsp;
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </td> </tr> </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </div>
                            <div class="seperator">
                            </div>
                        </div>
                        </ContentTemplate></asp:UpdatePanel>
                        <!-- Paged Results | End   -->
                        <div class="bottom">
                        </div>

                        <script type="text/javascript">
                            IncreaseProgress(50);
                        </script>

                    </div>
                </div>

                <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.js"></script>

                <div id="sidebar" style="width: 284px; float: left;">
                    <div class="results_travel" style="margin-left: 20px;">
                        <div id="divbanner" runat="server" visible="false">
                            <a href="../travel-insurance/">
                                <img src="../images/flights/banner_travel-ins.jpg" alt="Travel Insurance" /></a></div>
                        <div id="divtravelresults" runat="server">
                            <div class="top" style="height:30px;">
                                <div class="infobox" style="padding-top:9px">
                                <h2 style="font-size: 22px;">Airlines</h2>
                                    <%--<u><em><strong>Quotes based on your selected flight itinerary:</strong></em></u><div
                                        class="sep">
                                    </div>--%>
                                    <%--<div class="seperator">
                                    </div>--%>
                                    <div style="width: 100%; margin: 0 auto; text-align: center;display:none;">
                                        <asp:ImageButton runat="server" ID="imgbtnRerun" OnClick="imgbtnRerun_Click" ImageUrl="/images/icon/getnewquote_travelpack.png"
                                            AlternateText="Rerun" Style="margin: 0 auto" /><br />
                                    </div>
                                    <!-- <asp:Label runat="server" ID="lblLeftFrom"></asp:Label><br />
                                    •
                                    <asp:Label runat="server" ID="lblTrip"></asp:Label>
                                    •
                                    <asp:Label runat="server" ID="lblNoOfTraveller"></asp:Label>
                                    Adult Traveler
                                    <br />
                                    •
                                    <asp:Label runat="server" ID="lblPolicyType"></asp:Label>
                                    Plan
                                    -->
                                </div>
                            </div>

                            <script type="text/javascript">
                                IncreaseProgress(60);
                            </script>

                            <div class="body">
                                <div class="pad_10">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
        <asp:AsyncPostBackTrigger ControlID="cblCarriers" EventName="SelectedIndexChanged" />
        </Triggers>
        <ContentTemplate>
        <div id="divAirlineLoading" runat="server" style="text-align: center;">
        <asp:Image ID="Image1" runat="server" ImageUrl="../images/loader/loader_apple.gif" /></div>
            <asp:CheckBoxList ID="cblCarriers" runat="server" DataValueField="Id" AutoPostBack="true"
                DataTextField="Name" onselectedindexchanged="cblCarriers_SelectedIndexChanged">
            </asp:CheckBoxList>
            </ContentTemplate>
            </asp:UpdatePanel>
                                </div>
                                <div style="margin: 0 auto; width: 266px; text-align: center;display:none;">
                                    <asp:ImageButton ID="imgbtnTravelReminder" runat="server" ImageUrl="/images/button/reminder_travel_travelpack.png"
                                        AlternateTex="Set Travel Insurance Reminder" />
                                </div>
                                <div style="margin: 0 auto; width: 266px; text-align: center; display: none;">
                                    <asp:ImageButton ID="imgbtnTest" runat="server" ImageUrl="/images/button/reminder_travel_travelpack.png"
                                        AlternateTex="Set Travel Insurance Reminder" />
                                </div>
                            </div>
                            <div class="bottom">
                                <img src="../images/flights/bg_restuls_travel_bottom.png" alt="" />
                            </div>
                        </div>
                    </div>
                    <div class="seperator">
                    </div>

                    <script type="text/javascript">
                        IncreaseProgress(70);
                    </script>

                    <div class="column_extra right" style="display:none;">
                        <div class="top">
                        </div>
                        <div class="body">
                            <div class="pad_15">
                                <img src="/images/icon/guide_gray.png" alt="Guide" width="20" style="vertical-align: middle" />
                                &nbsp; <a href="../news/not-all-travel-insurance-policies-are-the-same.aspx" target="_blank">
                                    Importance of travel insurance</a>
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>

               <%-- <script type="text/javascript">
                    $(function() {
                        var offset = $("#sidebar").offset();
                        var topPadding = -100;
                        //alert(document.getElementById("divfr").clientHeight);
                        //alert(document.getElementById("sidebar").clientHeight);
                    $(window).scroll(function() {
                        var frh = document.getElementById("divfr").clientHeight;
                        var sbh = document.getElementById("sidebar").clientHeight + 200;
                        //alert((frh - sbh));
                        //alert(offset.top);
                            //alert($(window).scrollTop());
                            if ($(window).scrollTop() > offset.top) {
                                if ($(window).scrollTop() < (frh - sbh)) {
                                    $("#sidebar").stop().animate({
                                        marginTop: $(window).scrollTop() - (offset.top / 2) + topPadding
                                    });
                                } else {
                                    $("#sidebar").stop().animate({
                                        marginTop: (frh - sbh) - (offset.top / 2) + 150
                                    });
                                }
                            }
                            else {
                                $("#sidebar").stop().animate({
                                    marginTop: 0
                                });
                            };
                        });
                    });
                </script>--%>

                <br clear="all" />
            </div>
            <div class="bottom">
            </div>
        </div>
    </div>
    <div class="seperator">
    </div>
    <asp:Button runat="server" ID="btnBack" Visible="true" onmousedown="this.className = 'button_back_mousedown';"
        onmouseout="this.className = 'button_back';" onmouseup="this.className = 'button_back';"
        CssClass="button_back" CausesValidation="false" OnClientClick="if (Page_ClientValidate('none')){this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className = 'button_processing';} return true;"
        OnClick="btnBack_Click" />
    <%--  <asp:ImageButton runat="server" ID="btnBack" OnClick="btnBack_Click" ImageUrl="~/images/buttons/form_back_but.gif"
        onmouseover="this.src='/images/buttons/form_back_but_o.gif';" onmouseout="this.src='/images/buttons/form_back_but.gif';" />--%>
    <cc1:ModalPopupExtender ID="mpeTravelReminder" runat="server" TargetControlID="imgbtnTravelReminder"
        PopupControlID="pnlReminder" BackgroundCssClass="modalBackground" DropShadow="true"
        CancelControlID="btnClose" BehaviorID="mdlPopupTravelReminder">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="pnlReminder" runat="server" Style="display: none; background-color: White;">
        <asp:UpdatePanel ID="upReminder" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="sr_wrapper_travel" style="width: 770px; padding: 20px; border: 9px solid #3b3b3b;
                    overflow: visible; height: auto;">
                    <div class="sr_content_travel">
                        <div class="s_bubble">
                            <p>
                                If you are not looking for
                                <br />
                                insurance just yet but would
                                <br />
                                like to receive reminder emails
                                <br />
                                about products provided by
                                <br />
                                CompareXpress.com, just
                                <br />
                                leave your details below and
                                <br />
                                we will send you a reminder
                                <br />
                                one month ahead of your
                                <br />
                                identified product.</p>
                        </div>
                        <div class="sr_form">
                            <h1>
                                Travel Insurance Renewal Reminder</h1>
                            <div class="row pad_10b">
                                <asp:ValidationSummary ID="vsCarProfile" runat="server" ValidationGroup="reminder"
                                    ShowSummary="True" CssClass="errorSummary" HeaderText="Oops... Please complete the form">
                                </asp:ValidationSummary>
                            </div>
                            <div class="f_row">
                                <span class="form_l name_ico">Your Name</span>
                                <div class="f_field">
                                    <asp:TextBox ID="txtFullName" MaxLength="80" runat="server" class="text" Width="206px"></asp:TextBox>
                                    <span class="indicator">
                                        <asp:RequiredFieldValidator ID="rfvFullName" runat="server" ControlToValidate="txtFullName"
                                            CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="reminder"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revFullName" runat="server" ValidationExpression="^[a-zA-Z''-'\s]{1,80}$"
                                            CssClass="validationErrorControl" ControlToValidate="txtFullName" ErrorMessage=""></asp:RegularExpressionValidator></span>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>

                            <script type="text/javascript">
                                IncreaseProgress(80);
                            </script>

                            <div class="f_row">
                                <span class="form_l email_ico">Email Address</span>
                                <div class="f_field">
                                    <asp:TextBox ID="txtEmailAddress" MaxLength="250" runat="server" class="text" Width="206px"></asp:TextBox>
                                    <span class="indicator">
                                        <asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" ControlToValidate="txtEmailAddress"
                                            Display="Dynamic" CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="reminder"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revEmailAddress" runat="server" ControlToValidate="txtEmailAddress"
                                            CssClass="validationErrorControl" ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                            ValidationGroup="reminder"></asp:RegularExpressionValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="f_row">
                                <span class="form_l date_ico">Reminder Month</span>
                                <div class="f_field" style="z-index: 50;">
                                    <asp:DropDownList ID="ddlMonth" runat="server">
                                        <asp:ListItem Value="-1">Please select a month</asp:ListItem>
                                        <asp:ListItem Value="1">January</asp:ListItem>
                                        <asp:ListItem Value="2">February</asp:ListItem>
                                        <asp:ListItem Value="3">March</asp:ListItem>
                                        <asp:ListItem Value="4">April</asp:ListItem>
                                        <asp:ListItem Value="5">May</asp:ListItem>
                                        <asp:ListItem Value="6">June</asp:ListItem>
                                        <asp:ListItem Value="7">July</asp:ListItem>
                                        <asp:ListItem Value="8">August</asp:ListItem>
                                        <asp:ListItem Value="9">September</asp:ListItem>
                                        <asp:ListItem Value="10">October</asp:ListItem>
                                        <asp:ListItem Value="11">November</asp:ListItem>
                                        <asp:ListItem Value="12">December</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvMonth"
                                        runat="server" ControlToValidate="ddlMonth" ErrorMessage="" InitialValue="-1"
                                        ValidationGroup="reminder" Display="Dynamic" Text=""></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>

                            <script type="text/javascript">
                                IncreaseProgress(90);
                            </script>

                            <div class="f_row">
                                <asp:Label ID="lblAboutYouAssumption" runat="server" CssClass="assumption"></asp:Label>
                            </div>
                            <div id="divSubmitLoading" style="display: none">
                                <table style="width: 100%;">
                                    <tr>
                                        <td align="center" valign="middle">
                                            <img src="../images/loading7.gif" id="imgLoading" alt="Loading" width="30" height="20" />
                                            <span id="divLoadingMessage">Please wait...</span>
                                        </td>
                                    </tr>
                                    <tr align="right">
                                        <td>
                                            <a id="lnkStop" href="javascript:StopSubmit();">Cancel</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="f_row">
                                <asp:Label ID="lblSetInsMessage" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                    Font-Names="Arial" runat="server"></asp:Label>
                            </div>
                            <div class="f_row sr_button">
                                <%--<asp:ImageButton ID="btnSetReminder" runat="server" ImageUrl="~/images/buttons/submit_but.gif"
                                    OnClientClick="LoadValidationErrorCss();" OnClick="btnSetReminder_Click" ValidationGroup="reminder"
                                    AlternateText="Set Reminder" ToolTip="Set Reminder for Insurance" />--%>
                                <asp:Button runat="server" ID="btnSetReminder" onmousedown="this.className = 'button_submit_mousedown';"
                                    onmouseup="this.className = 'button_submit';" onmouseout="this.className = 'button_submit';"
                                    CssClass="button_submit" ValidationGroup="reminder" OnClientClick="LoadValidationErrorCss();ShowSubmitProgress('reminder');if (Page_ClientValidate('reminder')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                    OnClick="btnSetReminder_Click" />
                            </div>
                        </div>
                    </div>
                    <div style="text-align: left; width: 100%;">
                        <asp:Button ID="btnClose" runat="server" Text="Close" Width="50px" OnClientClick="HidePanel(); HideTravelReminder();" />
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="mpeUserInfo" runat="server" TargetControlID="imgbtnTest"
        PopupControlID="pnlUserInfo" BackgroundCssClass="modalBackground" DropShadow="true"
        CancelControlID="btnUserClose" BehaviorID="mdlPopupUserInfo">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="pnlUserInfo" runat="server" Style="display: none; background-color: White;"
        DefaultButton="btnUserInfo">
        <asp:UpdatePanel ID="upUserInfo" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="sr_wrapper_travel_new" style="width: 430px; padding: 20px; border: 9px solid #3b3b3b;
                    overflow: visible; height: auto;">
                    <div class="sr_content_travel_3">
                        <div class="sr_form_new">
                            <h1>
                                Simply enter the details below and you can have instant access to all travel insurance
                                packages.</h1>
                            <div class="row pad_10b">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="userinfo"
                                    ShowSummary="True" CssClass="errorSummary" HeaderText="Oops... Please complete the form">
                                </asp:ValidationSummary>
                            </div>
                            <div class="f_row">
                                <span class="form_l name_ico">Your Name</span>
                                <div class="f_field">
                                    <asp:TextBox ID="txtUserName" MaxLength="80" runat="server" class="text" Width="206px"></asp:TextBox>
                                    <span class="indicator">
                                        <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ControlToValidate="txtUserName"
                                            CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="userinfo"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revUsername" runat="server" ValidationExpression="^[a-zA-Z''-'\s]{1,80}$"
                                            CssClass="validationErrorControl" ControlToValidate="txtUserName" ErrorMessage=""
                                            ValidationGroup="userinfo"></asp:RegularExpressionValidator></span> </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="f_row">
                                <span class="form_l email_ico">Email Address</span>
                                <div class="f_field">
                                    <asp:TextBox ID="txtUserEmail" MaxLength="250" runat="server" class="text" Width="206px"></asp:TextBox>
                                    <span class="indicator">
                                        <asp:RequiredFieldValidator ID="rfvUserEmail" runat="server" ControlToValidate="txtUserEmail"
                                            Display="Dynamic" CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="userinfo"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revUserEmail" runat="server" ControlToValidate="txtUserEmail"
                                            CssClass="validationErrorControl" ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                            ValidationGroup="userinfo"></asp:RegularExpressionValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="f_row">
                                <span class="form_l mobile_ico">Mobile No</span>
                                <div class="f_field" style="z-index: 50;">
                                    <uc1:usrPhoneNo ID="txtMobileNo" ValidationGroup="userinfo" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                        PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                        runat="server" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div>
                                <span class="form_l dob_ico">Date of Birth</span>
                                <div class="f_field" style="z-index: 50;">
                                    <uc2:usrDate ID="userBirthday" ValidationGroup="userinfo" runat="server" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>

                            <script type="text/javascript">
                                IncreaseProgress(95);
                            </script>

                            <div class="f_row">
                                <asp:Label ID="Label1" runat="server" CssClass="assumption"></asp:Label>
                            </div>
                            <div id="div1" style="display: none">
                                <table style="width: 100%;">
                                    <tr>
                                        <td align="center" valign="middle">
                                            <img src="../images/loading7.gif" id="img1" alt="Loading" width="30" height="20" />
                                            <span id="Span1">Please wait...</span>
                                        </td>
                                    </tr>
                                    <tr align="right">
                                        <td>
                                            <a id="A1" href="javascript:StopSubmit();">Cancel</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="f_row">
                                <asp:Label ID="Label2" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                    Font-Names="Arial" runat="server"></asp:Label>
                            </div>
                            <div class="f_row sr_button">
                                <%--<asp:ImageButton ID="imgbtnUserInfo" runat="server" ImageUrl="~/images/buttons/proceed2.gif"
                                    OnClientClick="LoadValidationErrorCss();" ValidationGroup="userinfo" AlternateText="Get quote"
                                    ToolTip="Get travel quote" OnClick="imgbtnUserInfo_Click" />--%>
                                <asp:Button runat="server" ID="btnUserInfo" onmousedown="this.className = 'button_submit_mousedown';"
                                    onmouseup="this.className = 'button_submit';" onmouseout="this.className = 'button_submit';"
                                    CssClass="button_submit" ValidationGroup="userinfo" OnClientClick="LoadValidationErrorCss();ShowSubmitProgress('userinfo');if (Page_ClientValidate('userinfo')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                    OnClick="btnUserInfo_Click" />
                                <div class="login_terms">
                                    <a href="/privacy/privacy.aspx" target="_blank">* Privacy Policy</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div style="text-align: left; width: 100%;">
                        <asp:Button ID="btnUserClose" runat="server" Text="Close" Width="50px" OnClientClick="HidePanel();" />
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    <div style="display: none;">
        <input runat="server" id="inair" type="text" /><input runat="server" id="inid" type="text" /><input
            runat="server" id="inprovider" type="text" /><input runat="server" id="incountryid"
                type="text" />
    </div>

    <script>
        $("td.packone").slideUp(0).delay(2000).fadeIn(700);
        $("td.packtwo").slideUp(0).delay(4000).fadeIn(700);
        $("td.packthree").slideUp(0).delay(6000).fadeIn(700);
        $("td.packfour").slideUp(0).delay(8000).fadeIn(700);
        $("td.packfive").slideUp(0).delay(10000).fadeIn(700);
        $("td.packsix").slideUp(0).delay(12000).fadeIn(700);
        $("td.packseven").slideUp(0).delay(14000).fadeIn(700);
        $("td.packeight").slideUp(0).delay(16000).fadeIn(700);
    </script>

    <script type="text/javascript">

        function ShowOtherProviders(id, idlink) {

            if (document.getElementById(id).style.display == 'none') {
                document.getElementById(id).style.display = 'block';
                document.getElementById(idlink).innerHTML = 'Hide All Prices';
            }
            else {
                document.getElementById(id).style.display = 'none';
                document.getElementById(idlink).innerHTML = 'Show All Prices';
            }
        }

        function ShowPopup() {
            var modpop = $find("mdlPopupUserInfo");
            if (!modpop) { return; }
            modpop.show()
        }

        function HidePanel() {
            document.getElementById('<%=pnlUserInfo.ClientID%>').style.display = 'none';
            document.getElementById('<%=pnlReminder.ClientID%>').style.display = 'none';
        }

        function HideTravelReminder() {

            var modpop = $find("mdlPopupTravelReminder");
            if (!modpop) { return; }
            modpop.hide()
        }

        IncreaseProgress(100);

        HideLoading();

        var prm = Sys.WebForms.PageRequestManager.getInstance();


        prm.add_beginRequest(beginRequest);


        function beginRequest() {
            prm._scrollPosition = null;
        }
    </script>
</asp:Content>
